package gov.pbc.nn.kjgl.gzjh.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

@Entity
@Table(name = "T_WORK_PLAN")
public class WorkP extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Column(name = "WORK_NAME_", length = 200)
	@PropertyDef(label = "工作任务", description = "工作任务:工作任务的名称")
	private String workName;

	@Column(name = "SPECIFIC_REQUIREMENT_", length = 1000)
	@PropertyDef(label = "具体要求", description = "具体要求:具体要求")
	private String specificRequirement;

	@Column(name = "PLAY_DECOMPOSE_", length = 1000)
	@PropertyDef(label = "任务分解", description = "任务分解:任务分解")
	private String playDecompose;

	@Column(name = "START_DATE_")
	@PropertyDef(label = "计划开始时间", description = "计划开始时间:计划开始时间")
	private Date startDate;

	@Column(name = "END_DATE_")
	@PropertyDef(label = "计划结束时间", description = "计划结束时间:计划结束时间")
	private Date endDate;

	/**
	 * old
	 * 0是初始状态，1是kz操作中;2处理人操作；3已完成
	 */
	
	// 这个是最新的状态---0是初始状态，1是已经完成
	@Column(name = "STATE_")
	@PropertyDef(label = "状态", description = "状态:状态")
	private int state;

	public String getWorkName() {
		return workName;
	}

	public void setWorkName(String workName) {
		this.workName = workName;
	}

	public String getSpecificRequirement() {
		return specificRequirement;
	}

	public void setSpecificRequirement(String specificRequirement) {
		this.specificRequirement = specificRequirement;
	}

	public String getPlayDecompose() {
		return playDecompose;
	}

	public void setPlayDecompose(String playDecompose) {
		this.playDecompose = playDecompose;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
}
